package com.zx.BookSeaReader.greendao.service;

import com.zx.BookSeaReader.greendao.GreenDaoManager;
import com.zx.BookSeaReader.greendao.entity.UserBean;
import com.zx.BookSeaReader.greendao.gen.UserBeanDao;

import java.util.List;

/**
 * @Author: Administrator
 * @Time: 2020/2/26
 * @Description: 功能描述
 */
public class TypeService extends BaseService{
    /**
     * @Author: ZX
     * @Time: 2020/2/15
     * @Description: 查询所有该种类书
     */
    public List<UserBean> getAllUsers(){
        UserBeanDao userBeanDao = GreenDaoManager.getInstance().getSession().getUserBeanDao();
        List<UserBean> Users=userBeanDao.loadAll();
        return Users;

    }

}
